<?php if(!defined("PATH_HD"))exit;C("SHOW_NOTICE",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>文章管理主页</title>
	<link type="text/css" rel="stylesheet" href="http://localhost/hb/easycms/admin/tpl/public/css/arc.css"/>
    <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/hb/easycms';
		HDPHP = 'http://localhost/hdphp';
		STATIC = 'http://localhost/hb/easycms/static';
		HDPHPDATA = 'http://localhost/hdphp/data';
		HDPHPTPL = 'http://localhost/hdphp/libs/tpl';
		HDPHPPLUGIN = 'http://localhost/hdphp/plugin';
		WEB = 'http://localhost/hb/easycms/admin.php';
		APP = 'http://localhost/hb/easycms/admin.php';
		CONTROL = 'http://localhost/hb/easycms/admin.php/arc';
		METH = 'http://localhost/hb/easycms/admin.php/arc/recycle';
		URL = 'http://localhost/hb/easycms/admin.php/arc/recycle';
		TPL = 'http://localhost/hb/easycms/admin/tpl';
		PUBLIC = 'http://localhost/hb/easycms/admin/tpl/public';
</script>
	<script type='text/javascript' src='http://localhost/hdphp/plugin/jquery-1.8.2.min.js'></script>
	<script type="text/javascript" src="http://localhost/hb/easycms/admin/tpl/public/js/arc.js"></script>
</head>
<body>
	<h2 class='arc_tit'>
        <a href="<?php echo U('addshow');?>">添加文章</a>
    </h2>
    <table class="table2">
        <thead>
            <tr>
                <th width="5%"><input type="checkbox"/></th>
                <th width="5%">ID</th>
                <th width="50%">文章标题</th>
                <th width='13%'>所属栏目</th>
                <th width='8%'>点击数</th>
                <th  width="15%">操作</th>
            </tr>
        </thead>
        <tbody>
        <?php $hd["list"]["n"]["total"]=0;
if(!empty($data)):
$hd_list_total = count($data);
$hd_list_row = min($hd_list_total,1000);
$hd_list_row = floor($hd_list_row/1);
$hd_list_id=0;
$hd_list_start=1;
$hd_list_step=0;foreach($data as $hd_list_key =>$hd_list_value):
if($hd_list_start<1){$hd_list_start++;continue;}
if($hd_list_step %1!=0){$hd_list_step++;continue;}
$hd_list_step++;$hd["list"]["n"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["n"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["n"]["index"]=$hd_list_id+1;
$n=$hd_list_value;?>

            <tr>
                <td width="20"><input type="checkbox" aid='<?php echo $n['aid'];?>'/></td>
                <td><?php echo $n['aid'];?></td>
                <td><?php echo $n['title'];?></td>
                <td><?php echo $n['catname'];?></td>
                <td><?php echo $n['click'];?></td>
                <td>
                    <a href="<?php echo U('delarc','aid='.$n['aid']);?>">删除</a> |
                    <a href="javascript:;" aid=<?php echo $n['aid'];?> class='restore_one'>还原</a> |
                    <a href="<?php echo U('preview','aid='.$n['aid']);?>">预览</a>
                </td>
            </tr>
        <?php if($hd_list_id+1>=$hd_list_row){break;}
$hd_list_id++;
endforeach;
$hd["list"]["n"]["total"]=$hd_list_id+1;
endif;
?>
        </tbody>
    </table>
    <div class="cancelall fl">
        <a href="javascript:;">反选</a>
        <a href="javascript:;" class='restore_more'>还原</a>
    </div>
    <div class='page fl'><?php echo $page;?></div>
    <div class='clear'></div>
</body>
</html>